package com.ycy.util.httpUtils;

import java.util.Map;

public class HttpTool{
	public static String cookie2Str(Map<String, String> cookieMap){
		StringBuilder cookies = new StringBuilder();
		for (Map.Entry<String, String> k : cookieMap.entrySet()) {
			cookies.append(k.getKey()).append("=").append(k.getValue()).append(";");
		}
		String res = cookies.toString();
		return !"".equals(res) ? res.substring(0, res.length() - 1) : res;
	}
}
